﻿@model IEnumerable<ProcessRoll.Models.Process>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("创建新流程", "Design")
</p>
<table>
    <tr>
        <th>
            流程名称
        </th>
        <th>
            周期
        </th>
        <th>
            版本号
        </th>
        <th>
            发起人
        </th>
        <th>
            实际发起人
        </th>
        <th>
            操作
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ProcessName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Duration)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Version)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Applyer)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RealApplyer)
        </td>
        <td>
            @Html.ActionLink("流程编辑", "Design", new { id = item.ID }) |
            @Html.ActionLink("流程明细", "Details", new { id=item.ID }) |
            @Html.ActionLink("删除流程", "Delete", new { id=item.ID })
            @Html.ActionLink("流程预跑", "Preview", new { id=item.ID })
        </td>
    </tr>
}

</table>
